const readline = require('readline')

// 创建实例化接口对象
const rl = readline.createInterface({
    output: process.stdout,
    input: process.stdin
})

rl.question("今晚吃什么？", function(answer){
    console.log(answer)
    rl.close()
})

rl.on('close',function(){
    process.exit(0)
})